package com.greatwqs.wmall.order.provider.model.po;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * Created by MyBatis Generator 2025/04/01
 * https://github.com/greatwqs/mybatis-generator-plugin
 */
@Getter
@Setter
@ToString
public class Order {
    private Long orderId;

    private String orderNo;

    private String orderDes;

    private BigDecimal orderPrice;

    /**
     * 订单类型
     * @see com.greatwqs.wmall.order.client.enums.OrderType
     */
    private Integer orderType;

    /**
     * 订单状态
     * @see com.greatwqs.wmall.order.client.enums.OrderStatus
     */
    private Integer orderStatus;

    private Long userId;

    private Boolean valid;

    private Date createTime;

    private Date updateTime;

    /**
     * 订单详情, 创建订单时用的数据结构！
     */
    private transient List<OrderDetail> orderDetailList;
}